import Vue from 'vue'
import App from './App.vue'
import router from './tools/router'
import ajax from './tools/ajax.js'
import { Layout, Row, Col,Menu,Breadcrumb } from 'ant-design-vue'
import { Carousel } from 'ant-design-vue'
import { Collapse, Card, Skeleton,Table,Popconfirm } from 'ant-design-vue'
import { Avatar, Icon, List, Comment } from 'ant-design-vue'
import { Affix, Button, Alert, Spin } from 'ant-design-vue'
import { Drawer, Modal } from 'ant-design-vue'
import { Form, Input,DatePicker,Upload,Select } from 'ant-design-vue'
import { BackTop,Pagination } from 'ant-design-vue'

// 全局注册Layout
Vue.component(Layout.name, Layout);
Vue.component(Layout.Header.name, Layout.Header);
Vue.component(Layout.Sider.name, Layout.Sider);
Vue.component(Menu.name, Menu);
Vue.component(Menu.Item.name, Menu.Item);
Vue.component(Menu.SubMenu .name, Menu.SubMenu);
Vue.component(Breadcrumb.name, Breadcrumb);
Vue.component(Breadcrumb.Item.name, Breadcrumb.Item);
Vue.component(Layout.Content.name, Layout.Content);
Vue.component(Layout.Footer.name, Layout.Footer);
// 走马灯
Vue.component(Carousel.name, Carousel);
// 卡片
Vue.component(Card.name, Card);
Vue.component(Card.Meta.name, Card.Meta);
Vue.component(Avatar.name, Avatar);
Vue.component(List.name, List);
Vue.component(List.Item.name, List.Item);
Vue.component(Comment.name, Comment);
Vue.component(Icon.name, Icon);
//折叠面板
Vue.component(Collapse.name, Collapse);
Vue.component(Collapse.Panel.name, Collapse.Panel);
Vue.component(Table.name, Table);
Vue.component(Popconfirm.name, Popconfirm);
// 骨架屏
Vue.component(Skeleton.name, Skeleton);
// 栅格
Vue.component(Row.name, Row);
Vue.component(Col.name, Col);
// 浮动导航
Vue.component(Affix.name, Affix);
Vue.component(Button.name, Button);
Vue.component(Button.Group.name, Button.Group);
Vue.component(Alert.name, Alert);
Vue.component(Spin.name, Spin);
// 抽屉弹框
Vue.component(Drawer.name, Drawer);
Vue.component(Modal.name, Modal);
// 表单
Vue.component(Form.name, Form);
Vue.component(Form.Item.name, Form.Item);
Vue.component(DatePicker.name, DatePicker);
Vue.component(DatePicker.RangePicker.name, DatePicker.RangePicker);
Vue.component(Select.name, Select);
Vue.component(Select.Option.name, Select.Option);
Vue.component(Input.name, Input);
Vue.component(Input.TextArea.name, Input.TextArea);
Vue.component(Upload.name, Upload);
Vue.component(BackTop.name, BackTop);
Vue.component(Pagination.name, Pagination);

Vue.prototype.ajax = ajax;
Vue.config.productionTip = false
new Vue({
    render: h => h(App),
    router
}).$mount('#app')